package com.itheima.blog.web.controller;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.itheima.blog.web.domain.po.TBlog;
import com.itheima.blog.web.service.ITCommentService;
import com.itheima.common.domain.R;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 评论表 前端控制器
 * </p>
 *
 * @author sxm
 * @since 2023-07-11
 */
@RestController
@RequestMapping("/owner")
@RequiredArgsConstructor
public class TCommentController {
   private final ITCommentService commentService;

    @GetMapping("/comment/list")
    public R getMyCommentList(){
       return R.ok(commentService.getMyCommentList());
    }

    @GetMapping("/comment/reply")
    public R getMyReply(){
        return R.ok(commentService.getMyReply());
    }


}
